package cn.starrysky108.simpleerp.user.vo;

import cn.starrysky108.simpleerp.system.entity.SystemDepartment;
import cn.starrysky108.simpleerp.system.entity.SystemRole;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Carl Lee
 */
@Data
@NoArgsConstructor
public class UserVo {
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "真实姓名")
    private String actualName;

    @ApiModelProperty(value = "电话号码")
    private String phone;

    @ApiModelProperty(value = "邮箱地址")
    private String email;

    @ApiModelProperty(value = "住址")
    private String address;

    @ApiModelProperty(value = "户主")
    private Long household;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "部门信息")
    private SystemDepartment department;

    @ApiModelProperty(value = "角色信息")
    private List<SystemRole> roles;
    @ApiModelProperty(value = "上一次登录时间")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty(value = "创建者")
    private Long creator;
}
